package com.javabase.fzr1.Xunhuan;

public class dowhileExercise02 {
    public static void main(String[] args) {
        //统计1-200之间能被5整除但不能被3整除的个数；
        int i = 1;
        int sumnum = 0;//统计个数
        do {
            if(i % 5 ==0 & i % 3 != 0 ){
                System.out.println(i);
                sumnum++;
            }
            i++;
        }while (i <= 200);
        System.out.println("sumnum=" + sumnum   );
    }
}
